<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Canvas之抓娃娃GameDemo</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        .container {
            width: 100vw;
            height: 100vh;
            background-color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        #canvas {
            display: block;
            background-color: bisque;
        }
    </style>
</head>

<body>
    <div class="container">
        <canvas id="canvas" width="300" height="500"></canvas>
    </div>
</body>
<script src="./game.js"></script>
<script src="./wawa.js"></script>
<script src="./gouzi.js"></script>
<script>
    var game = new Game({
        dom: '#canvas',
        onClick: function (e) {
            if (game.gouzi.status == 'pending') {
                game.gouzi.status = 'down';
            }
        }
    });
</script>

</html>